package com.cuijq.ms.Iteratordesign.v2;

/**
 * @author by CuiJQ
 * @Classname Demo
 * @Description Demo Description
 * @Date 2021/5/29 16:56
 */
public class Demo {

  public static void main(String[] args) {
    List<String> names = new ArrayList<>();
    ((ArrayList<String>) names).add("a");
    ((ArrayList<String>) names).add("b");
    ((ArrayList<String>) names).add("c");
    ((ArrayList<String>) names).add("d");
    Iterator iterator = names.iterator();
    iterator.next();
//    names.remove("a");
  }
}
